package org.person.gift.clients;

import org.person.gift.clients.fallbackFactory.AuthClientFallback;
import org.person.gift.domain.LoginUser;
import org.person.gift.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "auth-server",fallbackFactory = AuthClientFallback.class)
@RequestMapping("/loginUser")
public interface AuthClient {
    @PutMapping
    AjaxResult save(@RequestBody LoginUser loginUser);
}
